package org.osite.util;

public class Preconditions {

    public static void checkArgument(boolean condition, String message) {
        if (!condition) throw new IllegalArgumentException(message);
    }

    public static void checkArgument(boolean condition) {
		if (!condition) throw new IllegalArgumentException();
	}
	
	public static <T> T checkNotNull(T x) {
		if (x == null) throw new NullPointerException();
		return x;
	}
}
